package com.crm.service;

import com.crm.commons.UserDto;
import com.crm.commons.domain.ResponseData;
import com.crm.entity.CrmUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.vo.PageBean;
import com.crm.vo.SysUser;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author junxian,dou
 * @since 2024-11-25
 */
public interface ICrmUserService extends IService<CrmUser> {

    void saveUserDetails(UserDto user,CrmUser userInfo);

    Map<String,Object> uploadImage(MultipartFile file);

    void updateAvatar(CrmUser userInfo);

    void updateEmail(CrmUser userInfo);

    ResponseData updatePassWord(SysUser sysUser);

    PageBean selectUserList(PageBean pageBean);

    UserDto getInfoById(String id);

    long getByUsername(String userName);

    void deleteByUserId(String[] ids);

    void resetPassWord(String id);

    void updateStatus(String id, String status);

    void grantRole(String userId, Long[] roleIds);

    List<CrmUser> getOwnerList();


}
